PROJECT(XPMRDF-Dal)

#find xerces package
FIND_PACKAGE(XERCESC REQUIRED)

#add the files to our groups and core
SOURCE_GROUP("dal" ./dal/*)
SOURCE_GROUP("dal-rdf" ./dal/rdf/*)
#seems to be a bug in cmake, can't put these in analysis\\standard folder :(
#dal detail

SET(XPMRDF-Dal_Files
	#for example 
	./dal/RdfFactory.cc
	./dal/XmlHandler.cc
	./dal/XmlUtil.cc
	./dal/rdf/RdfSax2Handler.cc
	./dal/rdf/RdfsSax2Handler.cc
	./dal/rdf/RdfXmlHandler.cc	
	./dal/rdf/RdfsXmlHandler.cc
)


#find our headers
file(GLOB_RECURSE HEADERS ${XPMRDF-Dal_SOURCE_DIR}/*.h)


#create the libraries
INCLUDE_DIRECTORIES( ${XPMRDF_SOURCE_DIR}/src/dal 
                     ${XPMRDF_SOURCE_DIR}/src/model
					 ${XERCESC_INCLUDE_DIR})


add_library(XPMRDF-Dal
    STATIC
	 ${XPMRDF-Dal_Files} ${HEADERS}
	)
	
#set properties on the libraries
SET_TARGET_PROPERTIES(XPMRDF-Dal PROPERTIES
    VERSION ${XPMRDF_VERSION}
    SOVERSION ${XPMRDF_SOVERSION}
    COMPILE_DEFINITIONS_DEBUG _DEBUG
)

#SET_TARGET_PROPERTIES( CONEX-Dal PROPERTIES COMPILE_FLAGS "${CONEX-Dal_SOURCE_DIR}/dal/db/otlv4.h" )
#SET_TARGET_PROPERTIES( CONEX-Dal PROPERTIES LINK_FLAGS "odbc32.lib" )



